#include "CheesePizza.h"

#include <iostream>

CheesePizza::CheesePizza(PizzaIngredientFactory *ingredientFactory) {
    this->ingredientFactory = ingredientFactory;
}

void CheesePizza::prepare(){
    std::cout << "Preparing " << name;
    dough = ingredientFactory->createDough();
    sauce = ingredientFactory->createSauce();
    cheese = ingredientFactory->createCheese();
    clam = ingredientFactory->createClam();
}